package com.learning.client;

import com.learning.server.CalcService;
import com.rpcLearning.client.RpcClient;
import com.rpcLearning.client.RpcClientConfig;

/**
 * @author:zyh
 * @Time:2021-03-17-21:45
 * @email:1269231889@qq.com
 */
public class Client {
    public static void main(String[] args) {
        RpcClient rpcClient = new RpcClient(new RpcClientConfig());
        CalcService proxy = rpcClient.getProxy(CalcService.class);
        Integer a = 1;
        Integer b = 2;
        System.out.println(proxy.add(a,b));
        System.out.println(proxy.minus(a,b));
    }
}
